package com.hyx.api.controller.pc_admin;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.hyx.api.utils.base.MobileBaseService;
import org.springframework.validation.annotation.Validated;
import org.springframework.security.access.prepost.PreAuthorize;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.core.page.TableDataInfo;
import com.hyx.api.domain.bo.MsgDialogueOrderBo;
import com.hyx.api.domain.vo.MsgDialogueOrderVo;
import com.hyx.api.service.pc_admin.IMsgDialogueOrderService;
import com.ruoyi.common.utils.poi.ExcelUtil;

/**
 * 订单消息对话Controller
 *
 * @author HK
 * @date 2023-11-05
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/msg")
public class MsgDialogueOrderController extends BaseController
{
    private final IMsgDialogueOrderService msgDialogueOrderService;

    private final MobileBaseService mobileBaseService;

    /**
     * 查询订单消息对话列表
     */
    @PreAuthorize("@ss.hasPermi('api:order:list')")
    @GetMapping("/list")
    public TableDataInfo list(MsgDialogueOrderBo bo)
    {
        startPage();
        List<MsgDialogueOrderVo> list = msgDialogueOrderService.selectMsgDialogueOrderList(bo, mobileBaseService.getLoginUserId());
        return getDataTable(list);
    }
}

